import React, {Component} from 'react'
import {Text, View, TouchableOpacity, Image} from 'react-native'


var image1 = require('./image/icon_tabbar_homepage.png');

class Profile extends Component {
    constructor(props) {
        super(props)
        //初始化的方法

    }


    render() {
        const {params} = this.props.navigation.state;
        return (
            <View>
                <TouchableOpacity onPress={() => this.props.navigation.pop()}>
                    <Image source={image1} style={{width: 100, height: 100}}/>
                </TouchableOpacity>
                <Text>{params.name}</Text>
                <Text>{params.user}</Text>
            </View>
        )
    }

}

module.exports = Profile;